﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using OnTheWay.Command;
using System.ComponentModel;

namespace PcBackgroundMgr.Controls
{
    /// <summary>
    /// ToolBar.xaml 的交互逻辑
    /// </summary>
    public partial class ToolBar : ToolBarBase
    {
        public ToolBar()
        {
            InitializeComponent();
        }
    }
    [System.ComponentModel.DesignTimeVisible(false)]
    public partial class ToolBarBase : ContentControl
    {

        public string Message
        {
            get { return (string)GetValue(MessageProperty); }
            set { SetValue(MessageProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Message.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty MessageProperty =
            DependencyProperty.Register("Message", typeof(string),
            typeof(ToolBarBase), new UIPropertyMetadata(""));


        //#region 命令

        //#region 刷新
        ///// <summary>
        ///// 刷新命令
        ///// </summary>
        //public ICommand CommandRefresh
        //{
        //    get { return (ICommand)GetValue(CommandRefreshProperty); }
        //    set { SetValue(CommandRefreshProperty, value); }
        //}

        //// Using a DependencyProperty as the backing store for CommandRefresh.  This enables animation, styling, binding, etc...
        //public static readonly DependencyProperty CommandRefreshProperty =
        //    DependencyProperty.Register("CommandRefresh", typeof(ICommand),
        //    typeof(ToolBarBase), new UIPropertyMetadata(null));

        //#endregion 刷新

        //#region 新建
        ///// <summary>
        ///// 新建命令
        ///// </summary>
        //public ICommand CommandAdd
        //{
        //    get { return (ICommand)GetValue(CommandAddProperty); }
        //    set { SetValue(CommandAddProperty, value); }
        //}

        //// Using a DependencyProperty as the backing store for CommandAdd.  This enables animation, styling, binding, etc...
        //public static readonly DependencyProperty CommandAddProperty =
        //    DependencyProperty.Register("CommandAdd", typeof(ICommand), 
        //    typeof(ToolBarBase), new UIPropertyMetadata(null));

        //#endregion 新建

        //#region 删除
        ///// <summary>
        ///// 删除命令
        ///// </summary>
        //public ICommand CommandDelete
        //{
        //    get { return (ICommand)GetValue(CommandDeleteProperty); }
        //    set { SetValue(CommandDeleteProperty, value); }
        //}

        //// Using a DependencyProperty as the backing store for CommandDelete.  This enables animation, styling, binding, etc...
        //public static readonly DependencyProperty CommandDeleteProperty =
        //    DependencyProperty.Register("CommandDelete", typeof(ICommand), 
        //    typeof(ToolBarBase), new UIPropertyMetadata(null));

        //#endregion 删除

        //#region 关闭
        ///// <summary>
        ///// 关闭命令
        ///// </summary>
        //public ICommand CommandClose
        //{
        //    get { return (ICommand)GetValue(CommandCloseProperty); }
        //    set { SetValue(CommandCloseProperty, value); }
        //}

        //// Using a DependencyProperty as the backing store for CommandClose.  This enables animation, styling, binding, etc...
        //public static readonly DependencyProperty CommandCloseProperty =
        //    DependencyProperty.Register("CommandClose", typeof(ICommand), 
        //    typeof(ToolBarBase), new UIPropertyMetadata(null));

        
        //#endregion 关闭

        //#endregion

    }
}
